var gulp = require("gulp");

const gulpUglify = require('gulp-uglify');

gulp.task("_uglify",function(){
	gulp.src("./js/**/*").pipe(gulpUglify()).pipe(gulp.dest("d:/js"));
});
const gulpMinCss = require('gulp-minify-css');
//gulpMinCss(无参);
gulp.task("_minCss",function(){
	gulp.src("css/**/*").pipe(gulpMinCss()).pipe(gulp.dest("d:/css"));
});


//压缩图片 cnpm install gulp-imagemin --save-dev
const gulpImageMin = require('gulp-imagemin');
gulp.task("_minImg",function(){
	gulp.src("./img/**/*").pipe(gulpImageMin()).pipe(gulp.dest("d:/img"));
});
